﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="CJONonlocalApply.aspx.cs" Inherits="Ewts.Storage.CJONonlocalApply" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="/Css/tab2.css" rel="Stylesheet" type="text/css" />
    <style type="text/css">
        td
        {
            height: 26px;
        }
        .input2 
        {
	        width: 154px;
	        margin-left: 5px;
        }
    </style>
    <script type="text/javascript">
        function GetCompDate(date1, date2) {
            var year1 = date1.getFullYear();
            var month1 = date1.getMonth();
            var day1 = date1.getDate();
            var year2 = date2.getFullYear();
            var month2 = date2.getMonth();
            var day2 = date2.getDate();
            if (year1 == year2 && month1 == month2 && day1 == day2) {
                return 0;
            }
            else if (year1 > year2) {
                return -1;
            }
            else if (year1 < year2) {
                return 1;
            }
            else if (month1 > month2) {
                return -1;
            }
            else if (month1 < month2) {
                return 1;
            }
            else if (day1 > day2) {
                return -1;
            }
            else if (day1 < day2) {
                return 1;
            }

        }

        $(document).ready(function () {
            $(".date1").datepicker({
                "dateFormat": "yy-mm-dd"
            });
            $(".date2").datepicker({
                "dateFormat": "yy-mm-dd"
            });

            $(".date2").change(function () {
                var date1 = new Date(Date.parse($(".date1").val().replace("-", "/")));
                var date2 = new Date(Date.parse($(".date2").val().replace("-", "/")));
                if (GetCompDate(date1, date2) == -1) {
                    $("#notice").html("通知日期大于收货日期");
                }
                else {
                    $("#notice").html("");
                }
            });

            $(".date1").change(function () {
                var date1 = new Date(Date.parse($(".date1").val().replace("-", "/")));
                var date2 = new Date(Date.parse($(".date2").val().replace("-", "/")));
                if (GetCompDate(date1, date2) == -1) {
                    $("#notice").html("通知日期大于收货日期");
                }
                else {
                    $("#notice").html("");
                }
            });


            $(".radbussinesstype").click(function () {
                var bussvalue = $(this).attr("checked");
                if (bussvalue == "checked") {
                    $(".hidbussinesstype").val($(this).val());
                }
            });
        });    
        </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
    <div class="tab2">

 <h1>收集工作指令（异地）</h1>
 <input type="hidden" id="hidCustomerAddID" value="0" runat="server" />
 <input type="hidden" id="hidRelid" value="0" runat="server" />
 <input type="hidden" id="hidCustomerID" value="0" runat="server" />
 <input type="hidden" id="hidLoadID"  runat="server" value="0" />
 <input type="hidden" id="hidOperman" runat="server" value="" />
 <input type="hidden" id="hidCJOID" runat="server" value="0" />
 <input type="hidden" id="hidVID" runat="server" value="0" />
    <table border="0" cellpadding="0" cellspacing="0" class="three2">
        <tr><td><h2>基础信息</h2></td></tr>
     
        <tr>
            <td width="100" align="right">LoadNum：</td>
            <td><asp:TextBox ID="txtLoadNum" Enabled="false" CssClass="input" runat="server" /></td>
            <td width="100" align="right">CJO单号：</td>
            <td><asp:TextBox ID="txtCJO" Enabled="false" CssClass="input" runat="server" /></td>
        </tr>
        <tr>
            <td width="100" align="right">业&nbsp;&nbsp;务&nbsp;&nbsp;员：</td>
            <td><asp:TextBox ID="txtSaleman" CssClass="input" Enabled="false" runat="server" ToolTip="" /></td>
            <td width="100" align="right">联系电话：</td>
            <td><asp:TextBox ID="txtPhoneNo" CssClass="input" runat="server" /></td>
        </tr>
  
        <tr>
            <td width="100" align="right">通知日期：</td>
            <td><asp:TextBox ID="txtNoticeDate" CssClass="date1" Enabled="false" runat="server" /></td>
            <td width="100" align="right">收货日期：</td>
            <td><asp:TextBox ID="txtCollectDate" runat="server" CssClass="date2" Width="80" style="margin-left: 5px;" /><asp:TextBox ID="txtCollectTime" runat="server" Width="70" text="0:00" /></td>
        </tr>
       <tr>
             <td width="100" align="right">处理地：</td>
            <td>
                <asp:DropDownList ID="dropGraphic" runat="server">
                    <asp:ListItem>上海</asp:ListItem>
                    <asp:ListItem>北京</asp:ListItem>
                    <asp:ListItem>苏州</asp:ListItem>
                    <asp:ListItem>广州</asp:ListItem>
                </asp:DropDownList>
             </td>
            <td width="100" align="right">归属地：</td>
            <td>
                <input id="txtLoadBelong" disabled="disabled" runat="server"/>
             </td>
       </tr>

 <tr>
             <td width="100" align="right">处理方式：</td>
            <td>
                 <label><input name="tyz" type="radio" disabled="disabled" checked="checked" value="无" />无</label> 
                <label><input name="tyz" type="radio" disabled="disabled" value="退运" />退运</label> 
                <label><input name="tyz" type="radio" disabled="disabled" value="直销" />直销</label> 

             </td>
            <td width="100" align="right">业务类型*</td>
            <td>
               <label><input name="bussinesstype" id="bussDest" class="radbussinesstype" type="radio" value="销毁" runat="server" />销毁</label> 
                <label><input name="bussinesstype" id="bussUsed" class="radbussinesstype" type="radio" value="利用" runat="server" />利用</label> 
                <input type="hidden" runat="server" class="hidbussinesstype" value="" id="hidbussinesstype" />
         
             </td>
       </tr>      
        <tr><td><h2>客户信息</h2></td></tr>
        <tr>
            <td width="100" align="right">客户名称：</td>
            <td><asp:TextBox ID="txtCompany" CssClass="input" runat="server" /></td>
            <td width="100" align="right">客户地址：</td>
            <td><asp:TextBox ID="txtAddress" CssClass="input" runat="server" /></td>
        </tr>
        <tr>
            <td width="100" align="right">客户联系人：</td>
            <td><asp:TextBox ID="txtContactPerson" CssClass="input" runat="server" /></td>
            <td width="100" align="right">客户联系人电话：</td>
            <td><asp:TextBox ID="txtContactPhoneNo" CssClass="input" runat="server" /></td>
        </tr>
 
        <tr><td><h2>提货要求</h2></td></tr>
        <tr>
            <td width="100" align="right">人员</td>
            <td colspan="3"><asp:TextBox ID="txtVehiRequire" CssClass="input" runat="server" Width="600" /></td>
<%--            <td width="100" align="right">结算方式：</td>
            <td>
                <asp:RadioButton ID="rblPayType1" CssClass="input" runat="server" Text="现金支付" GroupName="payType" Checked="true" />
                <asp:RadioButton ID="rblPayType2" CssClass="input" runat="server" Text="月结" GroupName="payType" />
            </td>
--%>        </tr>
 <%--       <tr>
            <td width="100" align="right">&nbsp;</td>
            <td colspan="4">&nbsp;</td>
        </tr>
--%>        <tr>
            <td width="100" align="right">需要工具：</td>
            <td colspan="5">
                <asp:CheckBox ID="rbTools1" runat="server" Text="太空包" /><asp:TextBox ID="txtTools1" runat="server" Width="30" Text="1"></asp:TextBox>，
                <asp:CheckBox ID="rbTools2" runat="server" Text="液压秤" /><asp:TextBox ID="txtTools2" runat="server" Width="30" Text="1"></asp:TextBox>，
                <asp:CheckBox ID="rbTools3" runat="server" Text="封箱带" /><asp:TextBox ID="txtTools3" runat="server" Width="30" Text="1"></asp:TextBox>，
                <asp:CheckBox ID="rbTools4" runat="server" Text="箱或桶" /><asp:TextBox ID="txtTools4" runat="server" Width="30" Text="1"></asp:TextBox>，
                <asp:CheckBox ID="rbTools5" runat="server" Text="手推车" /><asp:TextBox ID="txtTools5" runat="server" Width="30" Text="1"></asp:TextBox>，
                <asp:CheckBox ID="rbTools6" runat="server" Text="封　签" /><asp:TextBox ID="txtTools6" runat="server" Width="30" Text="1"></asp:TextBox>
            </td>
        </tr>

        <tr><td><h2>货物描述</h2></td></tr>
  <%--      <tr>
            <td width="100" align="right">预计件数：</td>
            <td><asp:TextBox ID="txtGoodsCount" CssClass="input" runat="server" /></td>
            <td width="100" align="right">货物重量：</td>
            <td><asp:TextBox ID="txtGoodsWeight" CssClass="input" runat="server" /></td>
        </tr>--%>
        <tr>
            <td width="100" align="right">货物描述：</td>
            <td colspan="4">
            <table width="100%" cellspacing="0" style="text-align:center;" cellpadding="0">
                <tr>
                    <th>实际收到货物描述</th><th>数量</th><th>实际收到货物描述</th><th>数量</th>
                </tr>
                <tr>
                    <td>
                       <asp:TextBox runat="server" Width="200px" ID="txtgoods1"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty1"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="200px" ID="txtgoods2"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty2"></asp:TextBox>
                    </td>
                </tr>
               <tr>
                    <td>
                       <asp:TextBox runat="server" Width="200px" ID="txtgoods3"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty3"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="200px" ID="txtgoods4"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty4"></asp:TextBox>
                    </td>
                </tr>
               <tr>
                    <td>
                       <asp:TextBox runat="server" Width="200px" ID="txtgoods5"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty5"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="200px" ID="txtgoods6"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty6"></asp:TextBox>
                    </td>
                </tr>
               <tr>
                    <td>
                       <asp:TextBox runat="server" Width="200px" ID="txtgoods7"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty7"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="200px" ID="txtgoods8"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty8"></asp:TextBox>
                    </td>
                </tr>
               <tr>
                    <td>
                       <asp:TextBox runat="server" Width="200px" ID="txtgoods9"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty9"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="200px" ID="txtgoods10"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty10"></asp:TextBox>
                    </td>
                </tr>
               <tr>
                    <td>
                       <asp:TextBox runat="server" Width="200px" ID="txtgoods11"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty11"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="200px" ID="txtgoods12"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" Width="40px" ID="txtqty12"></asp:TextBox>
                    </td>
                </tr>

           </table>
            </td>
        </tr>
        <tr>           
            <td width="100" align="right">&nbsp;</td>
            <td>
            </td>
            <td align="center"><asp:Button CssClass="button1" runat="server" ID="btnSubmit" Text="提交" onclick="btnSubmit_Click" /></td> 
        </tr>
    </table>
</div>
</asp:Content>